package de.fuberlin.inf.alp3.ue06;

public class Integer implements Expression {
    private int value;
    
    public Integer(int value) {
        this.value = value;
    }
    
    public Integer() {
    }
    
    public void setValue(int value) {
        this.value = value;
    }
    
    public int getValue() {
        return this.value;
    }

    @Override
    public Expression eval() {
        return this;
    }

    @Override
    public String toString() {
        return (new StringBuffer().append(this.value)).toString();
    }
}
